//
//  CSTransChinese.m
//  classroom
//
//  Created by Macx on 16/8/3.
//  Copyright © 2016年 LiuZhuo. All rights reserved.
//

#import "CSTransChinese.h"
#warning 将阿拉伯数字转为汉字的数字
@implementation CSTransChinese
+(NSString *)translation:(NSString *)arebic

{   NSString *str = arebic;
    NSArray *arabic_numerals =@[@"1",@"2",@"3",@"4",@"5",@"6",@"7"];
    NSArray *chinese_numerals =@[@"一",@"二",@"三",@"四",@"五",@"六",@"日"];
    NSDictionary *dictionary = [NSDictionary dictionaryWithObjects:chinese_numerals forKeys:arabic_numerals];
        NSString *a = [dictionary objectForKey:str];

    return a;
}

@end
